From: Carlos Garnacho Date: Mon, 27 Sep 2021 20:44:37 +0000 (+0200) Subject: swipeTracker: Set up TouchSwipeGesture in the capture phase X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~536^2^2~69 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=748fe074c4abd71ba33d89325f789c2b7ff8a76f;p=gnome-shell.git swipeTracker: Set up TouchSwipeGesture in the capture phase Use the new API to specify the gesture phase. Part-of: --- diff --git a/js/ui/swipeTracker.js b/js/ui/swipeTracker.js index 4546b76b6..b49216e5f 100644 --- a/js/ui/swipeTracker.js +++ b/js/ui/swipeTracker.js @@ -493,7 +493,7 @@ var SwipeTracker = GObject.registerClass({ this.bind_property('orientation', this._touchGesture, 'orientation', GObject.BindingFlags.SYNC_CREATE); this.bind_property('distance', this._touchGesture, 'distance', 0); - global.stage.add_action(this._touchGesture); + global.stage.add_action_full('swipe', Clutter.EventPhase.CAPTURE, this._touchGesture); if (params.allowDrag) { this._dragGesture = new TouchSwipeGesture(allowedModes, 1,